package ai.people.netmon.msgsearch.domain.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author zhenglin
 * @date 2022/8/3
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class EsDataTotal {
    @Field(name = "date",type = FieldType.Text)
    private String date;

    @Field(name = "group_title",type = FieldType.Text)
    private String groupTitle;

    @Field(name = "info_type",type = FieldType.Text)
    private String infoType;

    @Field(name = "group_name",type = FieldType.Text)
    private String groupName;

    @Field(name = "user_name" ,type = FieldType.Text)
    private String userName;

    @Field(name = "user_name" ,type = FieldType.Text)
    private String scroll;

    @Field(name = "scroll_id",type = FieldType.Text)
    private String scrollId;

    @Field(name = "rid",type = FieldType.Text)
    private String rid;

    @Field(name = "title",type = FieldType.Text)
    private String title;

    @Field(name = "content",type = FieldType.Text)
    private String content;

    @Field(name = "url",type = FieldType.Text)
    private String url;

    @Field(name = "site_name",type = FieldType.Text)
    private String siteName;

    @Field(name = "content@zh",type = FieldType.Text)
    private String contentZh;

    @Field(name = "@timestamp",type = FieldType.Text)
    private String timestamp;

    @Field(name = "group_id",type = FieldType.Text)
    private String groupId;

    @Field(name = "user_id",type = FieldType.Text)
    private String userId;

    @Field(name = "nick_name",type = FieldType.Text)
    private String nickName;

    @Id
    private String id;

//    private String tag;

    @Field(name = "lang",type = FieldType.Text)
    private String lang;

//    private String partnerIds;

    @Field(name = "nick_name ",type = FieldType.Text)
    private String nickName2;

    @Field(name = "ts ",type = FieldType.Text)
    private String ts;
}
